package dpc.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import cn.sh.cares.dao.entity.BaseEntity;

public class Synchronize extends BaseEntity {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = -2283799169788792774L;

	/* 同步ID */
	@Id
	@SequenceGenerator(allocationSize = 1, initialValue = 1, name = "SEQ_SYNCHRONIZE", sequenceName = "SEQ_SYNCHRONIZE")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYNCHRONIZE")
	@Column(name = "SYNC_ID")
	private Long syncId;
	
	/* 同步时间*/
	@Temporal(value = TemporalType.TIMESTAMP)
	@Column(name = "SYNC_TIME")
	private Date syncTime;
	
	/* 同步结束时间*/
	@Temporal(value = TemporalType.TIMESTAMP)
	@Column(name = "SYNC_END_TIME")
	private Date syncEndTime;
	
	/* 标识 */
	@Column(name = "IDENTITY")
	private String identity;
	
	/* 处理说明 */
	@Column(name = "PROCESS")
	private String process;
	
	/* 总数 */
	@Column(name = "TOTAL")
	private Integer total;
	
	/* 成功数 */
	@Column(name = "SUCCESS")
	private Integer success;
	
	/* 警告数 */
	@Column(name = "WARNING")
	private Integer warning;
	
	/* 错误数 */
	@Column(name = "ERROR")
	private Integer error;

	/* 致命错误数 */
	@Column(name = "FATAL")
	private Integer fatal;

	/* 远程(同步目标)时间 */
	@Temporal(value = TemporalType.TIMESTAMP)
	@Column(name = "REMOTE_TIME")
	private Date remoteTime;

	/**
	 * 获取PO对象的唯一标识
	 */
	@Override
	public Serializable getId() {
		return syncId;
	}
	
	public Long getSyncId() {
		return syncId;
	}

	public void setSyncId(Long syncId) {
		this.syncId = syncId;
	}

	public Date getSyncTime() {
		return syncTime;
	}

	public void setSyncTime(Date syncTime) {
		this.syncTime = syncTime;
	}

	public Date getSyncEndTime() {
		return syncEndTime;
	}

	public void setSyncEndTime(Date syncEndTime) {
		this.syncEndTime = syncEndTime;
	}

	public String getIdentity() {
		return identity;
	}

	public void setIdentity(String identity) {
		this.identity = identity;
	}

	public String getProcess() {
		return process;
	}

	public void setProcess(String process) {
		this.process = process;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public Integer getSuccess() {
		return success;
	}

	public void setSuccess(Integer success) {
		this.success = success;
	}

	public Integer getWarning() {
		return warning;
	}

	public void setWarning(Integer warning) {
		this.warning = warning;
	}

	public Integer getError() {
		return error;
	}

	public void setError(Integer error) {
		this.error = error;
	}

	public Integer getFatal() {
		return fatal;
	}

	public void setFatal(Integer fatal) {
		this.fatal = fatal;
	}

	public Date getRemoteTime() {
		return remoteTime;
	}

	public void setRemoteTime(Date remoteTime) {
		this.remoteTime = remoteTime;
	}
}
